package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 故障派单阶段信息对象 asms_fault_dispatch_stage
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsFaultDispatchStage
{
    private static final long serialVersionUID = 1L;
    /** 故障派单阶段信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long faultDispatchStageId;

    /** 故障外键 */
    @Excel(name = "故障外键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "故障外键")
    private Long faultAssetId;

    /** 开始时间 */
    @Excel(name = "开始时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "开始时间")
    private Long startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "结束时间")
    private Long endTime;

    /** 售后维护负责人 */
    @Excel(name = "售后维护负责人")
    @TableField(exist = true)
    @ApiModelProperty(value =  "售后维护负责人")
    private Long maintenanceChargeUserId;

    /** 售后维护公司(冗余设计) */
    @Excel(name = "售后维护公司(冗余设计)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "售后维护公司(冗余设计)")
    private Long maintenanceDeptId;

    /** 状态(-1退回，0正在处理中，1处理结束) */
    @Excel(name = "状态(-1退回，0正在处理中，1处理结束)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "状态(-1退回，0正在处理中，1处理结束)")
    private Integer status;

    /** 是否主动接单（0是，1否） */
    @Excel(name = "是否主动接单（0是，1否）")
    @TableField(exist = true)
    @ApiModelProperty(value =  "是否主动接单（0是，1否）")
    private Integer isActiveReceive;

    @TableField(exist = true)
    @ApiModelProperty(value =  "是否为转单（0是 1否）")
    private Integer isDispatch;

    public static final String FAULT_DISPATCH_STAGE_ID="fault_dispatch_stage_id";
    public static final String FAULT_ASSET_ID="fault_asset_id";
    public static final String START_TIME="start_time";
    public static final String END_TIME="end_time";
    public static final String MAINTENANCE_CHARGE_USER_ID="maintenance_charge_user_id";
    public static final String MAINTENANCE_DEPT_ID="maintenance_dept_id";
    public static final String STATUS="status";
    public static final String IS_ACTIVE_RECEIVE="is_active_receive";
    public static final String IS_DISPATCH="is_dispatch";

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultDispatchStageId", getFaultDispatchStageId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("maintenanceChargeUserId", getMaintenanceChargeUserId())
            .append("maintenanceDeptId", getMaintenanceDeptId())
            .append("status", getStatus())
            .toString();
    }
}
